package com.dji.compose_learning.ui.view

import androidx.compose.foundation.layout.Column
import androidx.compose.foundation.layout.padding
import androidx.compose.material.icons.Icons
import androidx.compose.material.icons.filled.Favorite
import androidx.compose.material3.*
import androidx.compose.runtime.Composable
import androidx.compose.ui.Modifier

@OptIn(ExperimentalMaterial3Api::class)
@Composable
fun ScaffoldLayoutView() {
    Scaffold(topBar = {
        CenterAlignedTopAppBar(title = {
            Text(text = "Title show here")
        }, actions = {
            IconButton(onClick = { /*TODO*/ }) {
                Icon(imageVector = Icons.Filled.Favorite, contentDescription = null)
            }
        })
    }) { innerPadding->
        ContentPage(Modifier.padding(innerPadding))
    }
}

@Composable
fun ContentPage(modifier: Modifier=Modifier) {
    Column(modifier = modifier) {
        Text(text = "demo1111")
        Text(text = "line text 2")
    }
}
















